package cn.csg.iotplatform.module.system.controller.admin.manufacturer.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 厂商信息唯一性校验resp VO")
@Data
@Builder
public class ManufacturerUniqueRespVO {

    @Schema(description = "厂商id已存在数量", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long manufacturerIdCount;

    @Schema(description = "厂商编号已存在数量", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long manufacturerNoCount;

    @Schema(description = "厂商名称已存在数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotNull(message = "厂商名称不能为空")
    private Long manufacturerNameCount;

}